package br.mestrado.unb.bs.model.sensor;

import br.mestrado.unb.bs.model.constant.DataPackageConstant;

public class EcgPayload extends Payload implements EcgPayloadInterface{

	
	private byte highPulseRate;
	private byte lowPulseRate;
	
	
	@Override
	public byte[] toByteStream() {
		byte[] stream = new byte[getSize()];
		stream[0] = lowPulseRate;
		stream[1] = highPulseRate;
		return stream;
	}

	@Override
	public byte getSize() {
		return DataPackageConstant.ecg_payload_size;
	}

	@Override
	public byte getCategory() {
		return DataPackageConstant.ecg_category;
	}

	public byte getHighPulseRate() {
		return highPulseRate;
	}

	public void setHighPulseRate(byte highPulseRate) {
		this.highPulseRate = highPulseRate;
	}

	public byte getLowPulseRate() {
		return lowPulseRate;
	}

	public void setLowPulseRate(byte lowPulseRate) {
		this.lowPulseRate = lowPulseRate;
	}

	
	
}
